#include <iostream>
#include <vector>
using namespace  std;

void test0(){
    vector<int> nums = {1, 2, 3, 4, 5};
    cout << "nums.size() = " << nums.size() << endl;
    cout << "nums.capacity() = " << nums.capacity() << endl;

    nums.push_back(6);
    cout << "nums.size() = " << nums.size() << endl;
    cout << "nums.capacity() = " << nums.capacity() << endl;

    nums.clear();
    cout << "nums.size() = " << nums.size() << endl;
    cout << "nums.capacity() = " << nums.capacity() << endl;

    nums.shrink_to_fit();
    cout << "nums.size() = " << nums.size() << endl;
    cout << "nums.capacity() = " << nums.capacity() << endl;
}

int main(){
    test0();
    return 0;
}